<template>
  <el-row :gutter="20">`
    <el-col :span="11">
      <el-card>
        <template #header>
          <div style="display: flex;justify-content: space-between">
            <el-text>基本信息</el-text>
            <el-button icon="Edit" @click="isEdit=true">编辑</el-button>
          </div>
        </template>
        <el-row>
          <el-col :span="6">
            <el-avatar shape="square" :src="loginUserInfo.avatar" style="height: 100px;width: 100px"></el-avatar>
          </el-col>
          <el-col :span="12">
              <el-text tag="b" size="large"> {{loginUserInfo.userName}}</el-text>
            <br>
            <el-icon v-if="loginUserInfo.sex==0" color="blue"><Male /></el-icon>
            <el-icon v-else color="red"><Female /></el-icon>
          </el-col>
        </el-row>
      </el-card>
    </el-col>
    <el-col :span="11">
      <el-card>
        <template #header>
          消息中心
        </template>
        <el-row :gutter="10">
          <el-col :span="6" >
            <el-text>消息</el-text>
            <el-card shadow="hover">
              <el-text> <el-icon size="30"  color="red" style="vertical-align: middle"><ChatLineRound /></el-icon>+???</el-text>
            </el-card>
          </el-col>
          <el-col :span="6" >
            <el-text>邮件</el-text>
            <el-card shadow="hover">
              <el-text> <el-icon size="30"  color="green" style="vertical-align: middle"><Message /></el-icon>+???</el-text>
            </el-card>
          </el-col>
        </el-row>
      </el-card>
    </el-col>
  </el-row>
</template>

<script setup>
import {ref} from 'vue'
import {useUserStore} from "@/stores/user";
import {storeToRefs} from 'pinia'

const userStore = useUserStore()
const {loginUserInfo} = storeToRefs(userStore)
let isEdit = ref(false)
</script>

<style scoped>

</style>
